package top.xin1901.j2ecd.dao;

import org.springframework.stereotype.Repository;
import top.xin1901.j2ecd.beans.User;
import top.xin1901.j2ecd.beans.dbo.UserDbO;

import java.util.List;

/**
 * @author HeYunjia
 */

@Repository
public interface UserDao {
    int insert(User user);

    int deleteByPrimaryKey(Long userId);

    int updateByPrimaryKey(User user);

    List<User> selectAll();
    User selectOne(Long userId);

}
